package com.example.demo3;

public class DemoTest3 {

    public static void main(String[] args) {

        TrafficLight trafficLight = new TrafficLight();
        trafficLight.switchToGreen();
        trafficLight.switchToRed();
        trafficLight.switchToYellow();

    }
}
